package observer;

public class ConcreteSubject implements Subject{

    @Override
    public void addObserver(Observer obs) {
        observers.add(obs);
    }

    @Override
    public void removeObserver(Observer obs) {
        observers.remove(obs);

    }

    @Override
    public void notifyAllObservers() {
        for(Observer observer : observers){
            observer.update();
        }
    }
}
